#include "Engine.h"

Alice::Engine*	gEngine = nullptr;
namespace Alice
{
    void Engine::Init(IEngineLoop* inEngineLoop)
    {
        mEngineLoop=inEngineLoop;
    }
    WorldContext* Engine::CreateNewWorldContext(EWorldType::Type WorldType)
    {
        WorldContext* NewWorldContext = new WorldContext;
        mWorldList.insert(NewWorldContext);
        NewWorldContext->mWorldType = WorldType;
        //NewWorldContext->ContextHandle = FName(*FString::Printf(TEXT("Context_%d"), NextWorldContextHandle++));
        return NewWorldContext;
    }
}
